package com.wxsh.test;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import com.hankcs.hanlp.restful.HanLPClient;


public class HanlpTokenize {

	@SuppressWarnings("rawtypes")
	public static void main(String[] args) throws IOException {
//		HanLPClient client = new HanLPClient("https://hanlp.hankcs.com/api", null, "mul", 5);
//		HanLPClient client = new HanLPClient("https://www.hanlp.com/api", null, "zh", 5);
		HanLPClient client = new HanLPClient("https://www.hanlp.com/api", "2145fa74hf61jf9a8vj417a9341123sd"); //第二个参数秘钥，需要申请
		Map<String, List> map = client.parse("我是中国人. 你是哪位?");
		List tok = map.get("tok");
		System.out.println(tok);
	}

}
